package com.gxwz.medical.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.gxwz.medical.domain.Payment;


public class PaymentDao extends GenericDao<Payment> {

	@Override
	protected Payment handle(ResultSet rs) throws SQLException {
		Payment payment=new Payment();
		payment.setPayNo(rs.getString("payNo"));
		payment.setPerscode(rs.getString("perscode"));
		payment.setPayCost(rs.getDouble("payCost"));
		payment.setRunyear(rs.getInt("runyear"));
		payment.setPaytime(rs.getDate("paytime"));
		payment.setCreator(rs.getString("creator"));
		return payment;
	}
}